package org.example.xiaomi.service;

import org.example.xiaomi.entity.Category;
import org.example.xiaomi.vo.ResultVO;

import java.util.List;
import java.util.Map;

/**
 * 实现数据增删改查的接口
 */
public interface CategoryService {
    List<Category> getCategoryList(int page, int limit, Map<String, Object> searchMap);
    long getCategoryCount(Map<String, Object> searchMap);
    ResultVO addCategory(Category category);
    ResultVO updateCategory(Category category);
    int deleteCategory(Long categoryId);
}
